package com.zimin.cloud.system.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.zimin.mapper.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.time.LocalDateTime;

/**
 * <p>
 * 系统访问记录
 * </p>
 *
 * @author zimin
 * @since 2021-12-30 11:05
 */
@Getter
@Setter
@TableName("sys_login_info")
@ApiModel(value = "LoginInfo对象", description = "系统访问记录")
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class LoginInfo{

    private static final long serialVersionUID = 1L;

    @TableId(value = "id",
            type = IdType.AUTO)
    private String id;

    @ApiModelProperty("登录账户")
    @TableField("login_name")
    private String loginName;

    @ApiModelProperty("登录地址")
    @TableField("ip")
    private String ip;

    @ApiModelProperty("登录地点")
    @TableField("login_location")
    private String loginLocation;

    @ApiModelProperty("浏览器")
    @TableField("browser")
    private String browser;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}
